/*
 * XML Type:  XCriteriaDataType
 * Namespace: http://www.seedwill.com/xul/criteria
 * Java type: com.seedwill.xul.criteria.XCriteriaDataType
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.criteria;


/**
 * An XML XCriteriaDataType(@http://www.seedwill.com/xul/criteria).
 *
 * This is an atomic type that is a restriction of com.seedwill.xul.criteria.XCriteriaDataType.
 */
public interface XCriteriaDataType extends org.apache.xmlbeans.XmlString
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XCriteriaDataType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s790E6810E76A77BB212DD6D4DA094898").resolveHandle("xcriteriadatatypea05dtype");
    
    org.apache.xmlbeans.StringEnumAbstractBase enumValue();
    void set(org.apache.xmlbeans.StringEnumAbstractBase e);
    
    static final Enum STRING = Enum.forString("STRING");
    static final Enum DATE = Enum.forString("DATE");
    static final Enum DATE_TIME = Enum.forString("DATE_TIME");
    static final Enum TIME = Enum.forString("TIME");
    static final Enum NUMBER = Enum.forString("NUMBER");
    static final Enum INTEGER = Enum.forString("INTEGER");
    static final Enum LONG = Enum.forString("LONG");
    static final Enum DOUBLE = Enum.forString("DOUBLE");
    static final Enum FLOAT = Enum.forString("FLOAT");
    static final Enum BIGDECIMAL = Enum.forString("BIGDECIMAL");
    static final Enum SHORT = Enum.forString("SHORT");
    static final Enum BYTE = Enum.forString("BYTE");
    static final Enum BYTEARRAY = Enum.forString("BYTEARRAY");
    static final Enum BIT = Enum.forString("BIT");
    static final Enum BINARY = Enum.forString("BINARY");
    static final Enum CLOB = Enum.forString("CLOB");
    static final Enum BLOB = Enum.forString("BLOB");
    static final Enum BOOLEAN = Enum.forString("BOOLEAN");
    static final Enum ARRAY = Enum.forString("ARRAY");
    static final Enum OBJECT = Enum.forString("OBJECT");
    static final Enum UNKNOWN = Enum.forString("UNKNOWN");
    
    static final int INT_STRING = Enum.INT_STRING;
    static final int INT_DATE = Enum.INT_DATE;
    static final int INT_DATE_TIME = Enum.INT_DATE_TIME;
    static final int INT_TIME = Enum.INT_TIME;
    static final int INT_NUMBER = Enum.INT_NUMBER;
    static final int INT_INTEGER = Enum.INT_INTEGER;
    static final int INT_LONG = Enum.INT_LONG;
    static final int INT_DOUBLE = Enum.INT_DOUBLE;
    static final int INT_FLOAT = Enum.INT_FLOAT;
    static final int INT_BIGDECIMAL = Enum.INT_BIGDECIMAL;
    static final int INT_SHORT = Enum.INT_SHORT;
    static final int INT_BYTE = Enum.INT_BYTE;
    static final int INT_BYTEARRAY = Enum.INT_BYTEARRAY;
    static final int INT_BIT = Enum.INT_BIT;
    static final int INT_BINARY = Enum.INT_BINARY;
    static final int INT_CLOB = Enum.INT_CLOB;
    static final int INT_BLOB = Enum.INT_BLOB;
    static final int INT_BOOLEAN = Enum.INT_BOOLEAN;
    static final int INT_ARRAY = Enum.INT_ARRAY;
    static final int INT_OBJECT = Enum.INT_OBJECT;
    static final int INT_UNKNOWN = Enum.INT_UNKNOWN;
    
    /**
     * Enumeration value class for com.seedwill.xul.criteria.XCriteriaDataType.
     * These enum values can be used as follows:
     * <pre>
     * enum.toString(); // returns the string value of the enum
     * enum.intValue(); // returns an int value, useful for switches
     * // e.g., case Enum.INT_STRING
     * Enum.forString(s); // returns the enum value for a string
     * Enum.forInt(i); // returns the enum value for an int
     * </pre>
     * Enumeration objects are immutable singleton objects that
     * can be compared using == object equality. They have no
     * public constructor. See the constants defined within this
     * class for all the valid values.
     */
    static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase
    {
        /**
         * Returns the enum value for a string, or null if none.
         */
        public static Enum forString(java.lang.String s)
            { return (Enum)table.forString(s); }
        /**
         * Returns the enum value corresponding to an int, or null if none.
         */
        public static Enum forInt(int i)
            { return (Enum)table.forInt(i); }
        
        private Enum(java.lang.String s, int i)
            { super(s, i); }
        
        static final int INT_STRING = 1;
        static final int INT_DATE = 2;
        static final int INT_DATE_TIME = 3;
        static final int INT_TIME = 4;
        static final int INT_NUMBER = 5;
        static final int INT_INTEGER = 6;
        static final int INT_LONG = 7;
        static final int INT_DOUBLE = 8;
        static final int INT_FLOAT = 9;
        static final int INT_BIGDECIMAL = 10;
        static final int INT_SHORT = 11;
        static final int INT_BYTE = 12;
        static final int INT_BYTEARRAY = 13;
        static final int INT_BIT = 14;
        static final int INT_BINARY = 15;
        static final int INT_CLOB = 16;
        static final int INT_BLOB = 17;
        static final int INT_BOOLEAN = 18;
        static final int INT_ARRAY = 19;
        static final int INT_OBJECT = 20;
        static final int INT_UNKNOWN = 21;
        
        public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
            new org.apache.xmlbeans.StringEnumAbstractBase.Table
        (
            new Enum[]
            {
                new Enum("STRING", INT_STRING),
                new Enum("DATE", INT_DATE),
                new Enum("DATE_TIME", INT_DATE_TIME),
                new Enum("TIME", INT_TIME),
                new Enum("NUMBER", INT_NUMBER),
                new Enum("INTEGER", INT_INTEGER),
                new Enum("LONG", INT_LONG),
                new Enum("DOUBLE", INT_DOUBLE),
                new Enum("FLOAT", INT_FLOAT),
                new Enum("BIGDECIMAL", INT_BIGDECIMAL),
                new Enum("SHORT", INT_SHORT),
                new Enum("BYTE", INT_BYTE),
                new Enum("BYTEARRAY", INT_BYTEARRAY),
                new Enum("BIT", INT_BIT),
                new Enum("BINARY", INT_BINARY),
                new Enum("CLOB", INT_CLOB),
                new Enum("BLOB", INT_BLOB),
                new Enum("BOOLEAN", INT_BOOLEAN),
                new Enum("ARRAY", INT_ARRAY),
                new Enum("OBJECT", INT_OBJECT),
                new Enum("UNKNOWN", INT_UNKNOWN),
            }
        );
        private static final long serialVersionUID = 1L;
        private java.lang.Object readResolve() { return forInt(intValue()); } 
    }
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.seedwill.xul.criteria.XCriteriaDataType newValue(java.lang.Object obj) {
          return (com.seedwill.xul.criteria.XCriteriaDataType) type.newValue( obj ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType newInstance() {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.criteria.XCriteriaDataType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.criteria.XCriteriaDataType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
